﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<JobDescOnline.Presentation.Models.Account>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit Account - Review JobDesc!
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="SideMenu" runat="server">
    <% Html.RenderPartial("MasterDataMenu"); %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Akun User - Data Baru!</h2>

    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Informasi Umum</legend>
            <table>
                <tr>
                    <td><%: Html.LabelFor(model => model.CreatedBy) %></td>
                    <td>
                        <%: Html.TextBoxFor(model => model.CreatedBy, new { @readonly = "readonly" })%>
                        <%: Html.ValidationMessageFor(model => model.CreatedBy) %>
                    </td>
                    <td><%: Html.LabelFor(model => model.CreatedOn) %></td>
                    <td>
                        <%: Html.TextBoxFor(model => model.CreatedOn, new { @readonly = "readonly" })%>
                        <%: Html.ValidationMessageFor(model => model.CreatedOn) %>
                    </td>
                </tr>
                <tr>
                    <td><%: Html.LabelFor(model => model.LastModifiedBy) %></td>
                    <td>
                        <%: Html.TextBoxFor(model => model.LastModifiedBy, new { @readonly = "readonly" })%>
                        <%: Html.ValidationMessageFor(model => model.LastModifiedBy) %>
                    </td>
                    <td><%: Html.LabelFor(model => model.LastModifiedOn) %></td>
                    <td>
                        <%: Html.TextBoxFor(model => model.LastModifiedOn, new { @readonly = "readonly" })%>
                        <%: Html.ValidationMessageFor(model => model.LastModifiedOn) %>
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset>
            <legend>Data Akun</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Rowstatus) %>
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("Rowstatus", (IEnumerable<SelectListItem>)HttpContext.Current.Application["Active"], "--Select One--")%>
                <%: Html.ValidationMessageFor(model => model.Rowstatus) %>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Fullname) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Fullname, new { style = "width: 300px" })%>
                <%: Html.ValidationMessageFor(model => model.Fullname)%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Email) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Email, new { style = "width: 300px" })%>
                <%: Html.ValidationMessageFor(model => model.Email)%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.SectionID) %>
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("SectionID", (IEnumerable<SelectListItem>)HttpContext.Current.Application["ComboSection"], "--Select One--")%>
                <%: Html.ValidationMessageFor(model => model.SectionID)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.JobTitleID) %>
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("JobTitleID", (IEnumerable<SelectListItem>)HttpContext.Current.Application["ComboJobTitle"], "--Select One--", new { style = "width: 300px" })%>
                <%: Html.ValidationMessageFor(model => model.JobTitleID)%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.RoleID) %>
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("RoleID", (IEnumerable<SelectListItem>)HttpContext.Current.Application["ComboRole"], "--Select One--", new { style = "width: 300px" })%>
                <%: Html.ValidationMessageFor(model => model.RoleID)%>
            </div>
        </fieldset>

        <p><input type="submit" value="Simpan" /></p>
    <% } %>

    <div><%: Html.ActionLink("Kembali", "Index") %></div>
</asp:Content>